<div class="question-item">
    <div class="quest-symbol">?</div>
    <div class="quest-info">
        <a href="/question/view/{$data->question_id}" class="question-title">«{CHtml::encode($data->title)}»</a>
        {assign var="answerCount" value=CommentFacade::getLatesCommentCount($data->comment_flow_id)}
        {if $answerCount}
            <p class="answer-count">дано ответов: {CommentFacade::getLatesCommentCount($data->comment_flow_id)}</p>
        {else}
            <p class="answer-count">ответов пока нет</p>
        {/if}
        <div class="clear-floating"></div>

        <p class="question-text">{CHtml::encode($data->text)}</p>
        <p class="author"><a href="{$controller->getUserPageUrl($data->author_id)}">
            {UserFacade::getFullNameUser($data->author_id)}</a>
        </p>

        <p class="question-controls">
        <a href="/question/view/{$data->question_id}" class="more">Дать ответ</a>
        {if ($isAuthor == true)}
        <a href="/question/update/{$data->question_id}" class="more">Редактировать</a> <a href="/question/delete/{$data->question_id}" class="more">Удалить</a>
        {/if}
        </p>

        <p class="date">{$data->publish_date|date_format:"%e.%m.%Y %H:%M"}</p>
    </div>
    <div class="clear-floating"></div>
</div>